<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: KeyEvent类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">基于Driectx112D游戏引擎</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_key_event-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">KeyEvent类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 KeyEvent 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_key_event.png" usemap="#KeyEvent_map" alt=""/>
  <map id="KeyEvent_map" name="KeyEvent_map">
<area href="class_event.html" alt="Event" shape="rect" coords="0,0,66,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ae2be07c91375559f453cd05fbb9b7ae7"><td class="memItemLeft" align="right" valign="top"><a id="ae2be07c91375559f453cd05fbb9b7ae7"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>Type</b> { <b>KeyPress</b>, 
<b>KeyRelease</b>
 }</td></tr>
<tr class="separator:ae2be07c91375559f453cd05fbb9b7ae7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a038e4f651c8a0edf48cef679d2de98fc"><td class="memItemLeft" align="right" valign="top"><a id="a038e4f651c8a0edf48cef679d2de98fc"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>KeyState</b> { <b>Release</b> =0, 
<b>Press</b> = 1
 }</td></tr>
<tr class="separator:a038e4f651c8a0edf48cef679d2de98fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_class_event"><td colspan="2" onclick="javascript:toggleInherit('pub_types_class_event')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="class_event.html">Event</a></td></tr>
<tr class="memitem:a2abf13b5be49315e9e362af02029f058 inherit pub_types_class_event"><td class="memItemLeft" align="right" valign="top"><a id="a2abf13b5be49315e9e362af02029f058"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>Type</b> { <b>EventType_Mouse</b>, 
<b>EventType_Keyboard</b>, 
<b>EventType_User</b>
 }</td></tr>
<tr class="separator:a2abf13b5be49315e9e362af02029f058 inherit pub_types_class_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a50f3bb259474af4907f7892eff3f2159"><td class="memItemLeft" align="right" valign="top"><a id="a50f3bb259474af4907f7892eff3f2159"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>KeyEvent</b> (KeyEvent::Type type, int key)</td></tr>
<tr class="separator:a50f3bb259474af4907f7892eff3f2159"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56eef785d1e4b9274e4279b44b78e277"><td class="memItemLeft" align="right" valign="top"><a id="a56eef785d1e4b9274e4279b44b78e277"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getKey</b> () const</td></tr>
<tr class="separator:a56eef785d1e4b9274e4279b44b78e277"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d7b665616a83e702fe4c643cdabde14"><td class="memItemLeft" align="right" valign="top"><a id="a1d7b665616a83e702fe4c643cdabde14"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setData</b> (uint32_t key, KeyState key_state)</td></tr>
<tr class="separator:a1d7b665616a83e702fe4c643cdabde14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace349d5a7e9cb6eeabc832ceba5958e3"><td class="memItemLeft" align="right" valign="top"><a id="ace349d5a7e9cb6eeabc832ceba5958e3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isPress</b> (uint32_t key_code)</td></tr>
<tr class="separator:ace349d5a7e9cb6eeabc832ceba5958e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab698569af2cd628bb4b0c000e45019c"><td class="memItemLeft" align="right" valign="top"><a id="aab698569af2cd628bb4b0c000e45019c"></a>
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>getKey</b> ()</td></tr>
<tr class="separator:aab698569af2cd628bb4b0c000e45019c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_event"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_event')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_event.html">Event</a></td></tr>
<tr class="memitem:a5e797e0840154277d3f3d24cee48f061 inherit pub_methods_class_event"><td class="memItemLeft" align="right" valign="top"><a id="a5e797e0840154277d3f3d24cee48f061"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Event</b> (Type event_type)</td></tr>
<tr class="separator:a5e797e0840154277d3f3d24cee48f061 inherit pub_methods_class_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01ca3f15c61ae84eec71f88951f36d5e inherit pub_methods_class_event"><td class="memItemLeft" align="right" valign="top"><a id="a01ca3f15c61ae84eec71f88951f36d5e"></a>
Type&#160;</td><td class="memItemRight" valign="bottom"><b>getType</b> ()</td></tr>
<tr class="separator:a01ca3f15c61ae84eec71f88951f36d5e inherit pub_methods_class_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5164a0ad46083c41004477f8d53abf9 inherit pub_methods_class_event"><td class="memItemLeft" align="right" valign="top"><a id="af5164a0ad46083c41004477f8d53abf9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTarget</b> (const std::shared_ptr&lt; <a class="el" href="class_node.html">Node</a> &gt; &amp;target)</td></tr>
<tr class="separator:af5164a0ad46083c41004477f8d53abf9 inherit pub_methods_class_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a2365cf645d3270aef16f624a414581 inherit pub_methods_class_event"><td class="memItemLeft" align="right" valign="top"><a id="a4a2365cf645d3270aef16f624a414581"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setTarget</b> (const std::weak_ptr&lt; <a class="el" href="class_node.html">Node</a> &gt; &amp;target)</td></tr>
<tr class="separator:a4a2365cf645d3270aef16f624a414581 inherit pub_methods_class_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ba6e75810bf7671fe6a71513d9fb6a1 inherit pub_methods_class_event"><td class="memItemLeft" align="right" valign="top"><a id="a9ba6e75810bf7671fe6a71513d9fb6a1"></a>
std::weak_ptr&lt; <a class="el" href="class_node.html">Node</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getTarget</b> ()</td></tr>
<tr class="separator:a9ba6e75810bf7671fe6a71513d9fb6a1 inherit pub_methods_class_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a852478c107cec155148edb3ed1c74d13 inherit pub_methods_class_event"><td class="memItemLeft" align="right" valign="top"><a id="a852478c107cec155148edb3ed1c74d13"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Event</b> (const <a class="el" href="class_event.html">Event</a> &amp;)=delete</td></tr>
<tr class="separator:a852478c107cec155148edb3ed1c74d13 inherit pub_methods_class_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_class_event"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_class_event')"><img src="closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="class_event.html">Event</a></td></tr>
<tr class="memitem:a1763e6d76e40554f97cf3748f30e3f84 inherit pub_static_methods_class_event"><td class="memTemplParams" colspan="2"><a id="a1763e6d76e40554f97cf3748f30e3f84"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a1763e6d76e40554f97cf3748f30e3f84 inherit pub_static_methods_class_event"><td class="memTemplItemLeft" align="right" valign="top">static EventType&#160;</td><td class="memTemplItemRight" valign="bottom"><b>getEventType</b> ()</td></tr>
<tr class="separator:a1763e6d76e40554f97cf3748f30e3f84 inherit pub_static_methods_class_event"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>该类的文档由以下文件生成:<ul>
<li>E:/毕业设计/SkyGameEngine2d/src/base/<a class="el" href="_event_key_8h_source.html">EventKey.h</a></li>
<li>E:/毕业设计/SkyGameEngine2d/src/base/<a class="el" href="_input_event_8h_source.html">InputEvent.h</a></li>
<li>E:/毕业设计/SkyGameEngine2d/src/base/EventKey.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
